---
layout: "default"
title: "alignof"
description: "Swift documentation for 'alignof': Returns the minimum memory alignment of T."
keywords: "alignof,func,swift,documentation"
root: "/v3.0"
---

<div class="declaration" id="func-alignof-t_-t-type">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-alignof-t_-t-type">func alignof&lt;T&gt;(<wbr>_: T.Type)</a>
        
<div class="comment collapse" id="comment-func-alignof-t_-t-type"><div class="p">
    <p>Returns the minimum memory alignment of <code>T</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func alignof&lt;T&gt;(_: T.Type) -&gt; Int</code>
    
    
</div></div>
</div>
